package com.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author Yadasu
 * @date 2020/12/22 10:14
 */
@Data
@Entity
@Table(name = "sys_menu_parent")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MenuAndParent implements Serializable {

    private static final long serialVersionUID = -2637598210796033672L;
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "中间表id")
    private Integer id;

    @Column(name = "pid")
    @ApiModelProperty(value = "父类id")
    private Integer pid;
    @Column(name = "menu_id")
    @ApiModelProperty(value = "菜单id")
    private Integer menuId;
}
